PreviousNextTracker indexSee it online !

(289/308) 1882 - Templates 5.0.0 - Insertion of template fails

For me, the templates plugin has stopped working well after update from jEdit 5.1 to 5.3. I was hoping that an update to jEdit 5.4.0 and templates 5.0.0 would fix the problem, but unfortunately it didn't:

Whenever I try to insert a template this fails with an error dialog: "An Error occurred while attempting to process a template. Refer to the Activity Log ..." (Templates plugin 4.1.2 didn't show this message, it failed silently). The Activity.log then contains a "*java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils*".

The error occurs in these environments (see attachments):

Templates v5.0.0 / velocity-1.7.jar
jEdit 5.4.0
Oracle Java 1.8
Windows 10

Templates v4.1.2 / velocity-1.5.jar
jEdit 5.3.0
Oracle Java 1.8
Windows 10

Templates v4.1.2 / velocity-1.5.jar
jEdit 5.3.0
Oracle Java 1.7
Windows XP SP3

Submitted rschwenn - 2017-04-17 20:43:24.179000 Assigned daleanson
Priority 7 Labels
Status open Group
Resolution None

Comments

2019-10-19 23:32:36.494000
daleanson

It looks like the problem is a missing dependency declaration in the plugin properties file. I added an entry for log4j and now the plugin works for me.

2019-10-19 23:33:03.901000
daleanson

- **assigned_to**: Dale Anson
- **Group**: -->

2019-10-19 23:54:10.095000
daleanson

- **status**: open --> closed-fixed

2019-10-19 23:54:10.659000
daleanson

Fixed in revision 24951, I added a missing dependency on log4j in the properties file and fixed a few deprecation warnings.

2019-12-15 20:21:00.653000
rschwenn

I'm sorry for late responding. But for me, nothing has changed with version 5.0.1. Now I double-checked with a fresh install of jedit and clean settings dircetory, then installed Templates plugin via PluginManager: same error - see new attachment.

Templates v5.0.1 / velocity-1.7.jar
jEdit 5.5.0
Oracle Java 9
Windows 10

activity_Win10_Java9_jEdit55.log (28.6Kio)

2019-12-15 20:21:57.328000
rschwenn

- **status**: closed-fixed --> open

2020-06-27 23:05:25.644000
jdmargulici

I am a brand new user of both Jedit and Tempaltes, and I have the same problem on Windows 10 with Jedit 5.5.0 and Templates 5.0.1. I can save templates but when I try to apply them to a new document I get the error prompt. Attached is an excerpt of the log file containing the errors.

errorlog.txt (8.1Kio)